home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6869 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: god.bel.alcatel.be!nlev00!barnhoorn
  2. From: barnhoorn@nlev00 ()
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Messages vs. Semaphores for external clocking
  5. Date: 4 Apr 1996 06:56:28 GMT
  6. Organization: Alcatel Bell
  7. Distribution: world
  8. Message-ID: <4jvrqs$hk0@btmpjg.god.bel.alcatel.be>
  9. References: <4ju349$r1e@sparky.navsea.navy.mil>
  10. Reply-To: barnhoorn@nlev00 ()
  11. NNTP-Posting-Host: 138.203.178.61
  12. X-Newsreader: mxrn 6.18-10
  13.  
  14.  
  15. In article <4ju349$r1e@sparky.navsea.navy.mil>, matuli_a@marlin.navsea.navy.mil (Alex Matulich 03T1 602-6691) writes:
  16. >I am wondering what is the most efficient way for one task to make data
  17. >available to another task.  I can do this by passing messages, or by
  18. >setting up a semaphore to provide a common area of memory accessible by
  19. >both tasks.
  20. >
  21. [..description removed..]
  22.  
  23. Use global data, which your subtask fills with the timer-values,
  24. and the parent process reads. Disable() and Enable() multitasking
  25. when performing such a critical action (reading or writing from the
  26. global data). No message port or semaphore needed.
  27.  
  28. -- 
  29. ---------------------------------------------------------------------------
  30. Jaco Barnhoorn               barnie@xs4all.nl
  31. Software Test Engineer       barnhoorn%nlev00@btmv56.se.bel.alcatel.be
  32. Alcatel Telecom Systems
  33. Rijswijk, The Netherlands
  34. ---------------------------------------------------------------------------
  35.